<?php
declare (strict_types = 1);

namespace app\common\model;

use think\Model;
use think\response\Json;

/**
 * @mixin \think\Model
 */
class Freight extends Base
{

    protected $name = 'freight';
    public function area()
    {
        return $this->hasOne(Area::class, 'code', 'area_code')->field('code,province');
    }

}
